package com.sjgtw.cloud.system.api.service;

import com.sjgtw.cloud.common.core.constant.ServiceNameConstants;
import com.sjgtw.cloud.common.core.domain.R;
import com.sjgtw.cloud.system.api.domain.SysDictDataVO;
import com.sjgtw.cloud.system.api.domain.SysDictTypeVO;
import com.sjgtw.cloud.system.api.fallbackfactory.RemoteDictFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * <p>Title: 数据字典数据API</p>
 * <p>Description: </p>
 * @author Admin
 * @date 2021-4-7
 */
@FeignClient(contextId = "remoteDictService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteDictFallbackFactory.class)
public interface RemoteDictService
{
	@GetMapping("/dict/type/listNoAuth")
	R<List<SysDictTypeVO>> listNoAuth(@SpringQueryMap SysDictTypeVO sysDictType);

	@GetMapping("/dict/data/dataInfoNoAuth")
	R<List<SysDictDataVO>> dataInfoNoAuth(@SpringQueryMap SysDictDataVO sysDictData);
}
